#pragma once
#include "BaseFunByOneVar.h"

namespace Net
{

class FunByCot : public BaseFunByOneVar
{
public:
    FunByCot() : BaseFunByOneVar(FunType_E::Cot_E, "Cot")
    {

    }

    ~FunByCot()
    {

    }

    Value_t runFun(Value_t x) final
    {
        return 1 / std::tan(x);
    }

    Value_t runDiff(Value_t x) final
    {
        return 1 / std::pow(std::sin(x), 2);
    }
};

}